﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Stanford.DemoConsole
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] artists = { "Leonardo", "Monet", "Van Gogh", "Klee" };

            int[] arr2 = new int[] { 1, 2, 3, 4, 5, 6, 7, 7 };

            int[] arr3 = new int[8];



            arr3[0] = 1;
            arr3[1] = 2;
            arr3[2] = 3;

            arr3[7] = 7;

            int sum = 0;
            //sum=arr3[0] + arr3[1];
            
            for (int i = 0;; i++)
            { 
                if (i != 5)
                {
                    sum += arr3[i];
                }

            }


            //int[,] = new 

            
            ////int k;
            //foreach (int itiem in arr3)
            //{
            //    sum += itiem;
            //} 


            Console.WriteLine(sum);

            //Array.Sort(artists);
            //Array.Reverse(artists);

            //foreach (string name in artists)
            //{
            //    Console.WriteLine(name);
            //}
            //Console.WriteLine("Nhap vao so phan tu cua mang:");
            //int s = Convert.ToInt32(Console.ReadLine());
            //int[] arr = new int[s];
            //string str = "";
            //for (int i = 0; i < arr.Length; i++)
            //{
            //    str += i + ";";
            //}
            //Console.WriteLine(str);
            Console.Read();




            for (int i = 0; i < 3; i++)
            {
                if (i != 5)
                {
                    sum += arr3[i];
                }

            }
        }
    }
}
